package com.jinzhi.jzweb.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.jinzhi.common.utils.Result;
import com.jinzhi.jzweb.domain.JazUserCommentClassifyDO;
import com.jinzhi.jzweb.domain.JazUserCommentDescriptionDO;
import com.jinzhi.common.base.CoreService;

import java.util.List;

/**
 * 
 * <pre>
 * 评价描述表
 * </pre>
 * <small> 2024-05-16 15:08:53 | Long</small>
 */
public interface JazUserCommentDescriptionService extends CoreService<JazUserCommentDescriptionDO> {
    /**
     * 分页查询评价描述列表
     * @param pageNumber
     * @param pageSize
     * @return
     */
    Page<JazUserCommentDescriptionDO> getUserCommentDescriptionList(int pageNumber, int pageSize);

    /**
     * 查询评论类型
     * @return
     */
    List<JazUserCommentClassifyDO> getCommentType();

    /**
     * 新增评价描述
     * @param jazUserCommentDescription
     * @return
     */
    Result<String> saveUserCommentDescription(JazUserCommentDescriptionDO jazUserCommentDescription);

    /**
     * 修改评价描述
     * @param jazUserCommentDescription
     * @return
     */
    Result<String> updateUserCommentDescriptionById(JazUserCommentDescriptionDO jazUserCommentDescription);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    JazUserCommentDescriptionDO selectUserCommentDescriptionById(Long id);

    /**
     * 修改评价描述状态
     * @param jazUserCommentDescriptionDO
     * @return
     */
    Result<String> updateUserCommentDescriptionStatus(JazUserCommentDescriptionDO jazUserCommentDescriptionDO);


    Result<?> selCommentDescription(Integer commentType);
}
